package com.goktech.olala.core.service.impl;

import com.goktech.olala.core.req.ReqGoodkey;
import com.goktech.olala.core.service.IGoodIndexService;
import com.goktech.olala.server.dao.goods.GoodMapper;
import com.goktech.olala.server.pojo.goods.Good;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @auther : 朱正标
 * @create time : 2020/12/4 20:52
 * @description :
 */
@Service
public class GoodIndexServiceImp implements IGoodIndexService {
    @Autowired
    GoodMapper goodMapper;
    @Override
    public List<Good> selectByKey(ReqGoodkey goodkey) {
        List<Good> goods = goodMapper.selectByKey(goodkey);
        return goods;
    }
}
